package aml.runtime;

import java.util.List;

import aml.parse.ParseNode;

public class Tuple extends Value {
	
	private Context context;
	private List<ParseNode> children;

	public Tuple(Context ctx, List<ParseNode> nodes) {
		context = ctx;
		children = nodes;
	}
	
	public Context getContext() {
		return context;
	}
	
	public List<ParseNode> getChildren() {
		return children;
	}

	@Override
	public ValueNum toNum() {
		return new ValueNum(children.size());
	}

}
